package com.sig.map;

import java.util.ArrayList;
import java.util.List;

import com.sig.formes.Point;

public class Polygone {
	
	List<Point> points = new ArrayList<Point>();
	Integer id = null;
	String type = null;
	List<Chemin> chemins = new ArrayList<Chemin>();

	public List<Point> getPoints() {
		return points;
	}

	public void setPoints(List<Point> points) {
		this.points = points;
	}
	
	public void addPoint(Point point) {
		this.points.add(point);
	}
	
	public List<Chemin> getChemins() {
		return chemins;
	}

	public void setChemins(List<Chemin> chemins) {
		this.chemins = chemins;
	}
	
	public void addChemin(Chemin chemin) {
		this.chemins.add(chemin);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public String toString(){
		return "Polygone id="+id+" type="+type+" | "+points.toString();
	}
	
	
}
